<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>系统登录</title>
</head>
<body>

<div style="text-align: center;width: 100%;height: 100px;background-color: cadetblue;">
    <h3>登录界面</h3>
</div>

<div style="text-align: center;">
    <!--  提交数据添加method=post,不添加会默认get,导致乱码  -->
    <form action="${pageContext.request.contextPath}/login.action" method="post">
        用户账号：<input type="text" name="username"><br/>
        用户密码：<input type="password" name="password"><br/>
        <input type="submit" value="登录"/>
    </form>
</div>

<div style="background-color: cadetblue;">
    <hr>
</div>
<div style="text-align: center;">
    <h4 style="color: cadetblue;">资源共享系统</h4>
</div>
</body>
</html>